// ErrorCode.java
package com.example.common.constant;

public class ErrorCode {
    public static final int SUCCESS = 0;
    public static final int BAD_REQUEST = 400;
    public static final int UNAUTHORIZED = 401;
    public static final int FORBIDDEN = 403;
    public static final int NOT_FOUND = 404;
    public static final int INTERNAL_SERVER_ERROR = 500;
    
    // 业务错误码
    public static final int USER_NOT_FOUND = 1001;
    public static final int ROLE_NOT_FOUND = 1002;
    public static final int PERMISSION_DENIED = 1003;
}